//
//  AppStrings.swift
//  CMB250716
//
//  Created by Assistant on 2025-01-02.
//

import Foundation

/// 应用文本本地化管理
struct AppStrings {
    
    // MARK: - 通用文本
    struct Common {
        static let confirm = "确认"
        static let confirmEn = "Confirm"
        static let cancel = "取消"
        static let save = "保存"
        static let delete = "删除"
        static let edit = "编辑"
        static let done = "完成"
        static let next = "下一步"
        static let previous = "上一步"
        static let skip = "跳过"
        static let retry = "重试"
        static let refresh = "刷新"
        static let loading = "加载中..."
        static let error = "错误"
        static let success = "成功"
        static let warning = "警告"
        static let info = "信息"
        static let close = "关闭"
        static let back = "返回"
        static let share = "分享"
        static let shareNow = "立即分享"
        static let shareNowEn = "Share Now"
        static let viewDetails = "查看详情"
        static let viewDetailsEn = "View Details"
        static let copy = "复制"
        static let copyright = "2025 Cu Mr Bull Pte. Ltd."
        static let alert = "提示"
        static let detailInfo = "详细信息"
        static let useNow = "立即使用"
        static let expired = "已过期"
        static let available = "可用"
        static let unavailable = "不可用"
    }
    

    
    // MARK: - 我的页面
    struct Me {
        static let membershipCenter = "会员中心"
        static let membershipCenterEn = "Membership Center"
        static let availablePoints = "可用积分"
        static let availablePointsEn = "Available Points"
        static let totalEarned = "累计积分"
        static let totalEarnedEn = "Total Earned"
        static let memberServices = "会员服务"
        static let memberServicesEn = "Member Services"
        static let myCoupons = "我的优惠券"
        static let myCouponsEn = "My Coupons"
        static let available = "张可用"
        static let availableEn = "Available"
        static let inviteFriends = "邀请好友"
        static let inviteFriendsEn = "Invite Friends"
        static let shareInviteCode = "分享邀请码获得奖励"
        static let shareInviteCodeEn = "Share invite code for rewards"
        static let membershipGuide = "会员制度与积分使用规则"
        static let membershipGuideEn = "Membership & Points Program Guide"
        static let tapToViewRules = "点击查看详细规则"
        static let tapToViewRulesEn = "Tap to view detailed rules"
        static let membershipLevels = "4个会员等级，不同积分兑换比例"
        static let membershipLevelsEn = "4 membership levels with different point ratios"
        static let pointsTypes = "消费积分 + 社交互动积分"
        static let pointsTypesEn = "Spending points + Social interaction points"
        static let voucherRules = "礼券使用规则与条款"
        static let voucherRulesEn = "Voucher usage rules & terms"
    }
    
    struct Login {
        static let healthyKoreanFastFood = "健康韩式快餐"
        static let powerUpSlogan = "Power Up with Every Bite!"
        static let koreanSlogan = "한 입 먹을 때마다 에너지가 충전돼요!"
        static let enterPhoneToRegister = "填写电话号码注册成为会员"
        static let enterPhoneToRegisterEn = "Enter Phone number to Register as Member"
        static let getCode = "获取验证码"
        static let getCodeEn = "Get Code"
        static let faceIdLogin = "Face ID登录"
        static let touchIdLogin = "指纹登录"
        static let biometricLoginEn = "Login"
        static let verificationCode = "6位验证码"
        static let verificationCodeEn = "6-Digit Verification Code"
        static let login = "登录"
        static let loginEn = "Login"
        static let enterInviteCode = "输入邀请码"
        static let enterInviteCodeEn = "Enter invite code"
        static let inviteCode = "邀请码"
        static let inviteCodeEn = "Invite Code"
        static let optional = "（可选）"
        static let optionalEn = "(Optional)"
        static let resendCode = "重新发送验证码"
        static let resendCodeEn = "Resend Code"
        static let orSignInWith = "或使用以下方式登录"
        static let orSignInWithEn = "Or sign in with:"
    }
    
    struct Menu {
        static let searchDishes = "搜索菜品..."
        static let searchDishesEn = "Search dishes..."
        static let addedToCart = "已添加到购物车"
        static let addedToCartEn = "Added to Cart"
        static let soldOut = "暂时售罄"
        static let soldOutEn = "Sold Out"
        static let chooseMeatType = "选择肉类"
        static let chooseMeatTypeEn = "Choose Meat Type"
        static let specialRequirement = "特殊要求"
        static let specialRequirementEn = "Special requirement"
        static let enterSpecialRequirement = "请输入特殊要求（可选）"
        static let enterSpecialRequirementEn = "Enter special requirement (optional)"
        static let quantity = "数量"
        static let quantityEn = "Quantity"
        
        // 菜品名称
        static let koreanFriedChickenSet = "韩式炸鸡套餐"
        static let koreanFriedChickenSetEn = "Korean Fried Chicken Set"
        static let beefStoneBowlBibimbap = "牛肉石锅拌饭"
        static let beefStoneBowlBibimbapEn = "Beef Stone Bowl Bibimbap"
        static let friedChickenAndBeer = "炸鸡配啤酒"
        static let friedChickenAndBeerEn = "Fried Chicken & Beer"
        
        // 菜品描述
        static let crispyOutsideTenderInside = "香脆外皮，嫩滑内里"
        static let crispyOutsideTenderInsideEn = "Crispy outside, tender inside"
        static let traditionalKoreanNutritious = "传统韩式，营养丰富"
        static let traditionalKoreanNutritiousEn = "Traditional Korean, nutritious"
        static let perfectAfternoonCombo = "下午茶时光，完美搭配"
        static let perfectAfternoonComboEn = "Perfect afternoon combo"
    }
    
    // MARK: - 购物车页面
    struct CartView {
        static let clear = "清空"
        static let clearEn = "Clear"
        static let usePoints = "使用积分"
        static let usePointsEn = "Use Points"
        static let pointsQuantity = "积分数量"
        static let pointsQuantityEn = "Points Quantity"
        static let cancel = "取消"
        static let cancelEn = "Cancel"
        
        // 购物车冲突相关
        static let cartConflictTitle = "购物车冲突"
        static let cartConflictTitleEn = "Shopping Cart Conflict"
        static let clearCart = "清空购物车"
        static let clearCartEn = "Clear Cart"
        static let ok = "OK"
        static let okEn = "OK"
        static let emptyCartTitle = "购物车是空的"
        static let emptyCartTitleEn = "Cart is Empty"
        static let emptyCartMessage = "去菜单页面添加一些美味的菜品吧！"
        static let emptyCartMessageEn = "Go to menu to add some delicious dishes!"
        static let browseMenu = "浏览菜单"
        static let browseMenuEn = "Browse Menu"
        static let selectCoupon = "选择优惠券"
        static let selectCouponEn = "Select Coupon"
        static let loginRequired = "(需登录使用会员优惠)"
        static let loginRequiredEn = "(Login required for member discounts)"
        static let available = "可用"
        static let availableEn = "available"
        static let subtotalBeforeGST = "税前小计"
        static let subtotalBeforeGSTEn = "Subtotal before GST"
        static let discount = "优惠"
        static let discountEn = "Discount"
        static let subtotalAfterDiscount = "折扣后小计"
        static let subtotalAfterDiscountEn = "Subtotal after discount"
        static let total = "总计"
        static let totalEn = "Total"
        static let checkout = "去结算"
        static let checkoutEn = "Checkout"
        static let each = "每份"
        static let eachEn = "each"
        static let selectOrderType = "选择订单类型"
        static let selectOrderTypeEn = "Select Order Type"
        static let dineIn = "堂食"
        static let dineInEn = "Dine-in"
        static let takeAway = "外带"
        static let takeAwayEn = "Take-away"
        static let selectCouponTitle = "选择优惠券"
        static let selectCouponTitleEn = "Select Coupon"
        static let done = "完成"
        static let doneEn = "Done"
        static let noAvailableCoupons = "暂无可用优惠券"
        static let noAvailableCouponsEn = "No Available Coupons"
        static let validUntil = "有效期至"
        static let validUntilEn = "Valid until"
        static let points = "积分"
        static let pointsEn = "points"
    }
    
    // MARK: - 优惠券相关
    struct Coupons {
        static let myCoupons = "我的优惠券"
        static let availableCoupons = "可用优惠券"
        static let usedCoupons = "已使用优惠券"
        static let expiredCoupons = "已过期优惠券"
        static let couponDetails = "优惠券详情"
        static let couponCode = "优惠券代码"
        static let validUntil = "有效期至"
        static let usageConditions = "使用条件"
        static let allCoupons = "所有优惠券"
        static let allCouponsEn = "All Coupons"
        static let chooseFavorite = "选择您喜欢的优惠券"
        static let chooseFavoriteEn = "Choose your favorite coupons"
        static let couponUnlocked = "优惠券解锁"
        static let couponUnlockedEn = "Coupon Unlocked"
        static let minimumSpend = "最低消费"
        static let maximumDiscount = "最高优惠"
        static let applicableItems = "适用商品"
        static let termsAndConditions = "使用条款"
        static let couponUsed = "优惠券已使用"
        static let couponExpired = "优惠券已过期"
        static let invalidCoupon = "无效优惠券"
        static let couponNotApplicable = "优惠券不适用"
        
        // 优惠券类型
        static let newMemberDiscount = "新会员立减福利"
        static let weekendSpecial = "周末会员专享"
        static let birthdaySpecial = "生日会员专享"
        static let cashVoucher = "现金券"
        static let superCashVoucher = "超值现金礼券"
        static let membershipUpgrade = "会员升级专享"
        static let seasonalPromo = "季节限定优惠"
        static let loyaltyReward = "忠诚会员奖励"
        
        // MARK: - 解锁提示消息配置
        struct UnlockMessages {
            static let loginRequired = "请先登录以使用此优惠券"
            static let loginRequiredEn = "Please login to use this coupon"
            static let membershipLevelRequired = "需要达到指定会员等级才能使用此优惠券"
            static let membershipLevelRequiredEn = "Membership level required to use this coupon"
            static let memberInfoRequired = "请完善会员信息以解锁此优惠券"
            static let memberInfoRequiredEn = "Please complete member information to unlock this coupon"
            static let activationRequired = "需要满足激活条件才能使用此优惠券"
            static let activationRequiredEn = "Activation conditions must be met to use this coupon"
            static let timeSlotRestricted = "此优惠券仅在营业时间内可用"
            static let timeSlotRestrictedEn = "This coupon is only available during business hours"
            static let usageLimitReached = "此优惠券使用次数已达上限"
            static let usageLimitReachedEn = "Usage limit reached for this coupon"
            static let couponExpired = "此优惠券已过期"
            static let couponExpiredEn = "This coupon has expired"
            static let couponInactive = "此优惠券暂不可用"
            static let couponInactiveEn = "This coupon is currently unavailable"
        }
    }
    
    // MARK: - 导航标题
    struct Navigation {
        static let home = "首页"
        static let menu = "菜单"
        static let coupons = "优惠券"
        static let cart = "购物车"
        static let profile = "我的"
        static let settings = "设置"
        static let about = "关于"
        static let help = "帮助"
        static let feedback = "反馈"
        static let contact = "联系我们"
    }
    
    // MARK: - 认证相关
    struct Auth {
        static let login = "登录"
        static let logout = "退出登录"
        static let register = "注册"
        static let forgotPassword = "忘记密码"
        static let resetPassword = "重置密码"
        static let changePassword = "修改密码"
        static let verificationCode = "验证码"
        static let sendCode = "发送验证码"
        static let resendCode = "重新发送"
        static let phoneNumber = "手机号码"
        static let password = "密码"
        static let confirmPassword = "确认密码"
        static let biometricAuth = "生物识别认证"
        static let faceID = "Face ID"
        static let touchID = "Touch ID"
        static let enableBiometric = "启用生物识别"
        static let biometricPrompt = "请使用生物识别验证身份"
        static let authenticationFailed = "认证失败"
        static let authenticationSuccess = "认证成功"
    }
    
    // MARK: - 会员相关
    struct Membership {
        static let memberNumber = "会员编号"
        static let memberLevel = "会员等级"
        static let points = "积分"
        static let totalPoints = "总积分"
        static let availablePoints = "可用积分"
        static let pointsHistory = "积分记录"
        static let memberBenefits = "会员权益"
        static let upgradeToVIP = "升级VIP"
        static let vipMember = "VIP会员"
        static let regularMember = "普通会员"
        static let goldMember = "金牌会员"
        static let platinumMember = "白金会员"
        static let diamondMember = "钻石会员"
    }
    

    
    // MARK: - 购物车相关
    struct Cart {
        static let shoppingCart = "购物车"
        static let emptyCart = "购物车为空"
        static let cartTotal = "购物车总计"
        static let subtotal = "小计"
        static let tax = "税费"
        static let discount = "优惠"
        static let deliveryFee = "配送费"
        static let serviceFee = "服务费"
        static let grandTotal = "总计"
        static let checkout = "结账"
        static let proceedToPayment = "前往支付"
        static let applyCoupon = "使用优惠券"
        static let removeCoupon = "移除优惠券"
        static let couponApplied = "优惠券已应用"
        static let invalidCouponCode = "无效的优惠券代码"
    }
    
    // MARK: - 订单相关
    struct Orders {
        static let myOrders = "我的订单"
        static let orderHistory = "订单历史"
        static let orderDetails = "订单详情"
        static let orderNumber = "订单号"
        static let orderDate = "下单时间"
        static let orderStatus = "订单状态"
        static let pending = "待处理"
        static let confirmed = "已确认"
        static let preparing = "制作中"
        static let ready = "待取餐"
        static let completed = "已完成"
        static let cancelled = "已取消"
        static let refunded = "已退款"
        static let estimatedTime = "预计完成时间"
        static let actualTime = "实际完成时间"
        static let pickupTime = "取餐时间"
        static let deliveryTime = "配送时间"
    }
    
    // MARK: - 支付相关
    struct Payment {
        static let payment = "支付"
        static let paymentMethod = "支付方式"
        static let creditCard = "信用卡"
        static let debitCard = "借记卡"
        static let cash = "现金"
        static let digitalWallet = "电子钱包"
        static let payNow = "立即支付"
        static let paymentSuccessful = "支付成功"
        static let paymentFailed = "支付失败"
        static let paymentPending = "支付处理中"
        static let refund = "退款"
        static let refundSuccessful = "退款成功"
        static let refundFailed = "退款失败"
        static let refundPending = "退款处理中"
    }
    
    // MARK: - 设置相关
    struct Settings {
        static let generalSettings = "通用设置"
        static let accountSettings = "账户设置"
        static let privacySettings = "隐私设置"
        static let notificationSettings = "通知设置"
        static let languageSettings = "语言设置"
        static let themeSettings = "主题设置"
        static let securitySettings = "安全设置"
        static let dataSettings = "数据设置"
        static let aboutApp = "关于应用"
        static let version = "版本"
        static let buildNumber = "构建号"
        static let termsOfService = "服务条款"
        static let privacyPolicy = "隐私政策"
        static let contactSupport = "联系客服"
        static let reportBug = "报告问题"
        static let rateApp = "评价应用"
        static let shareApp = "分享应用"
    }
    
    // MARK: - 推广相关
    struct Promotion {
        // 分享卡片标题
        static let shareCardTitle = "🎁 分享并赚取现金礼券"
        static let shareCardTitleEn = "🎁 Share & Earn Cash Vouchers"
        
        // 现金礼券金额显示
        static let cashVoucherAmount = "现金礼券 S$3.00"
        static let cashVoucherAmountEn = "Cash Voucher S$3.00"
        
        // 邀请好友描述
        static let inviteFriendsDescription = "邀请好友注册，双方各得 $3.00 现金礼券"
        static let inviteFriendsDescriptionEn = "Invite friends to register, both get $3.00 cash voucher"
        
        // 保留原有字段以兼容性
        static let shareAndEarn = "分享赢现金礼券"
        static let shareAndEarnEn = "Share & Earn Cash Vouchers"
    }
    
    // MARK: - 邀请好友相关文本
    struct Invite {
        static let inviteFriends = "邀请好友"
        static let inviteFriendsEn = "Invite Friends"
        static let inviteFriendsToJoin = "邀请好友加入"
        static let inviteFriendsToJoinEn = "Invite Friends to Join"
        static let shareExclusiveCode = "分享赢现金礼券"
        static let shareExclusiveCodeEn = "Share & Earn Cash Voucher"
        static let yourInviteCode = "生成您的4D邀请码"
        static let yourInviteCodeEn = "Generate Your 4D Invitation Code"
        static let inviteRewards = "邀请奖励"
        static let inviteRewardsEn = "Invite Rewards"
        
        // 奖励项目
        static let immediateReward = "立即奖励"
        static let immediateRewardEn = "Immediate Reward"
        static let immediateRewardDesc = "好友完成注册后，您立即获得S$3.00现金礼券"
        static let immediateRewardDescEn = "Get S$3.00 cash voucher immediately after friend registers"
        
        static let friendBonus = "好友奖励"
        static let friendBonusEn = "Friend Bonus"
        static let friendBonusDesc = "您的好友注册后也将获得S$3.00现金礼券"
        static let friendBonusDescEn = "Your friend will also receive S$3.00 cash voucher after registration"
        
        static let consumptionBonus = "消费奖励"
        static let consumptionBonusEn = "Consumption Bonus"
        static let consumptionBonusDesc = "好友消费满S$20.00后，您再获得S$2.00现金礼券"
        static let consumptionBonusDescEn = "Get additional S$2.00 cash voucher when friend spends S$20.00"
        
        static let inviteDescription = "邀请您的朋友并获得奖励！分享您的邀请码，当您的朋友成为会员时，您们都将享受S$3.00现金礼券。另外，当您的朋友消费满S$10时，您将解锁额外的S$2.00现金礼券——分享从未如此有价值！"
        static let inviteDescriptionEn = "Invitation Terms & Conditions\n\n1. Share your unique invitation code with friends.\n    The code is system-generated and valid for 72\n    hours.\n\n2. When your friend registers as a member using\n    your code within the validity period, you will both\n    receive a S$3.00 cash voucher.\n\n3. Your friend must enter the invitation code\n    during member registration.\n\n4. After your friend places their first order\n    (minimum spend S$10, excluding beverages),\n    you will receive an additional S$2.00 cash\n    voucher.\n\n5. The system will automatically unlock the cash\n    vouchers upon successful verification.\n\n6. All voucher Terms & Conditions apply. Please\n    check the voucher details card for more\n    information.\n\n7. \"4D Invitation Code\" stands for FOUR DIGITAL\n    Invitation Code."
        
        // 分享相关
        static let shareInviteCode = "分享邀请码"
        static let shareInviteCodeEn = "Share Invite Code"
        static let shareViaWhatsApp = "通过WhatsApp分享"
        static let shareViaWhatsAppEn = "Share via WhatsApp"
        static let inviteCodeCopied = "邀请码已复制到剪贴板"
        static let inviteCodeCopiedEn = "Invite code copied to clipboard"
        
        // 分享文本
        static func shareText(inviteCode: String) -> String {
            return "🎉 邀请您加入Mr Bull！\n\n使用我的邀请码：\(inviteCode)\n\n立即下载享受专属现金礼券奖励！\n\n• 注册即得S$3.00现金礼券\n• 消费满S$20.00再得S$2.00现金礼券"
        }
        
        static func shareTextEn(inviteCode: String) -> String {
            return "🎉 Join Mr Bull with me!\n\nUse my invite code: \(inviteCode)\n\nDownload now for exclusive cash voucher rewards!\n\n• Get S$3.00 cash voucher upon registration\n• Get additional S$2.00 cash voucher when spending S$20.00"
        }
    }
    
    // MARK: - 错误消息
    struct Errors {
        static let networkError = "网络连接错误"
        static let serverError = "服务器错误"
        static let unknownError = "未知错误"
        static let invalidInput = "输入无效"
        static let requiredField = "此字段为必填项"
        static let invalidPhoneNumber = "手机号码格式不正确"
        static let invalidEmail = "邮箱格式不正确"
        static let passwordTooShort = "密码长度不足"
        static let passwordMismatch = "密码不匹配"
        static let accountNotFound = "账户不存在"
        static let incorrectCredentials = "用户名或密码错误"
        static let accountLocked = "账户已被锁定"
        static let sessionExpired = "会话已过期，请重新登录"
        static let permissionDenied = "权限被拒绝"
        static let featureNotAvailable = "功能暂不可用"
        static let maintenanceMode = "系统维护中，请稍后再试"
    }
    
    // MARK: - 成功消息
    struct Success {
        static let operationSuccessful = "操作成功"
        static let dataSaved = "数据已保存"
        static let profileUpdated = "个人资料已更新"
        static let passwordChanged = "密码已修改"
        static let orderPlaced = "订单已提交"
        static let paymentProcessed = "支付已处理"
        static let couponApplied = "优惠券已应用"
        static let itemAddedToCart = "商品已加入购物车"
        static let itemRemovedFromCart = "商品已从购物车移除"
        static let feedbackSubmitted = "反馈已提交"
        static let accountCreated = "账户创建成功"
        static let verificationSent = "验证码已发送"
        static let emailVerified = "邮箱验证成功"
        static let phoneVerified = "手机号验证成功"
    }
}